package org.dearsor.elective.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

@Entity
public class Teacher extends Person {
	
	
	
	
	
	private Set<Course> courses;



	@ManyToMany(cascade = CascadeType.ALL)
	public Set<Course> getCourses() {
		return courses;
	}

	public void setCourses(Set<Course> courses) {
		this.courses = courses;
	}
	
	
	
	

}
